<?php
/**
 * Created by PhpStorm.
 * User: zhengyc
 * Date: 18-5-17
 * Time: 下午1:40
 */

namespace api\modules\user\models;


use common\exceptions\ModelHttpException;
use yii\base\Model;

class BaseModel extends Model{
    protected $_token;

    public function setToken($token){
        $this->_token = $token;
        return $this;
    }


    public function throwError($e,$err=null){
        throw new ModelHttpException($e,$err);
    }
}